package ru.magicreader.model;

import java.util.ArrayList;
import java.util.List;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/*
 * User of the service.
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class User {

	@Persistent
	@PrimaryKey
	private String login;
	
	@Persistent
	private ArrayList<Feed> feeds = new ArrayList<Feed>();
	
	public User(String login) {
		this.login = login;
	}
	
	public void setLogin(String login) {
		this.login = login;
	}

	public String getLogin() {
		return login;
	}

	public List<Feed> getFeeds() {
		return feeds;
	}

}
